package com.zhan.webflux.exception;

import org.springframework.web.bind.annotation.ExceptionHandler;
import org.springframework.web.bind.annotation.RestControllerAdvice;

/*
 *@Description<p></p>
 *@Author gz
 *@CreateTime 2025/7/22 11:16
 *@CopyRight @2021-2025 卓望信息技术（北京）公司
 */
@RestControllerAdvice
public class GlobalExceptionHander {
    @ExceptionHandler(Exception.class)
    public String handleException(Exception e) {
        return "发生异常: " + e.getMessage();
    }
}
